package com.my.bo;

import java.math.BigInteger;
import java.util.List;

import com.my.bean.Address;

public interface AddressBo {

	/***************************************** address ***************************************************************************/

	boolean addAddress(Address address) throws Exception;

	boolean editAddress(Address address) throws Exception;

	Address getAddressById(Class<Address> c, Integer id) throws Exception;

	BigInteger getTotalAddressRecords() throws Exception;

	List<Address> getAllAddressByPage(int pageindex, int pagesize)
			throws Exception;

	boolean removeAddress(Integer id) throws Exception;

	public BigInteger searchTotalAddressRecords(Address address)
			throws Exception;

	List<Address> searchAddressByPage(int pageindex, int pagesize,
			Address address) throws Exception;

	boolean isExist(String name);
}
